﻿@model FTBS.Models.Entities.TicketType
@{
    ViewBag.Title = "Tùy chỉnh loại vé";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<legend style="margin-top: 10px">Tùy Chỉnh</legend>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.TicketTypeId)
  <table class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
      <tr>          
          <td>
              Loại vé (*)
          </td>
          <td>
            <div class="input-control text">
                @Html.EditorFor(model => model.TicketTypeName)
                       <p style="color:red;font-size:10pt"> @Html.ValidationMessageFor(model => model.TicketTypeName)</p>
                @if (ViewBag.TicketType != null)
                    {
                        <p style="color:red;font-size:10pt">Loại vé này đã có sẵn!</p>
                    }
            </div>
          </td>
          </tr>
      <tr>
          <td>
              Chỉ số (*)
          </td>
          <td>
            <div class="input-control text">
                @Html.EditorFor(model => model.Rate)
                       <p style="color:red;font-size:10pt"> @Html.ValidationMessageFor(model => model.Rate)</p>
            </div>
          </td>
      </tr>
      <tr>
          <td colspan="2">
                <input class="large info"type="submit" value="Lưu" />
          </td>
      </tr>
  </table>
}

<div>
    @Html.ActionLink("Quay Lại", "Index")
</div>
